package com.prs.crm.dao.stock.impl;

import java.util.Collection;

import org.hibernate.Criteria;

import com.prs.crm.dao.impl.BaseDaoImpl;
import com.prs.crm.dao.stock.ProductUnitDao;
import com.prs.crm.domain.stock.ProductUnit;

public class ProductUnitDaoImpl extends BaseDaoImpl< ProductUnit> implements ProductUnitDao {

	@SuppressWarnings("unchecked")
	@Override
	public Collection<ProductUnit> getAllproductUnits() {
		Criteria criteria=this.getSession().createCriteria(ProductUnit.class);	
		return criteria.list();
	}

}
